package cn.com.elite;

import java.io.PrintWriter;
import java.io.StringWriter;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class EliteUtil {
	private static final Log log=LogFactory.getLog(EliteUtil.class);
	public static String getERRO(Exception e){
		String str="";
		try{
            StringWriter sw = new StringWriter();  
            e.printStackTrace(new PrintWriter(sw, true));  
            str = sw.toString(); 	
		}catch(Exception e1){
			str=e.toString();
			log.error("getERRO:"+e1.toString());
		}
		return str;
	}
	public static String StringUtil(String a){
		if(a==null){
			return "";
		}else{
			return a.replace(" ","");
		}
	}

}
